﻿using System.IO;

namespace MoveNext.IO.Grf
{
    public class GrfHeader
    {
        private string sig; // 16 bytes, "Master of Magic"
        private char[] crypt; // 14 bytes, ??
        private int fileTableOffset; // 4 bytes, file table offset
        private int num; // 4 bytes, ??
        private int entrys; // 4 bytes, number of files inside
        private GrfVersion version; // 4 bytes, grf version

        public string Sig
        {
            get { return sig; }
            set { sig = value; }
        }
        public char[] Crypt
        {
            get { return crypt; }
            set { crypt = value; }
        }
        public int FileTableOffset
        {
            get { return fileTableOffset; }
            set { fileTableOffset = value; }
        }
        public int Num
        {
            get { return num; }
            set { num = value; }
        }
        public int Entrys
        {
            get { return entrys; }
            set { entrys = value; }
        }
        public GrfVersion Version
        {
            get { return version; }
            set { version = value; }
        }
    }
}